package com.fy.service.impl;

import com.fy.mapper.UserMapper;
import com.fy.pojo.User;
import com.fy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public int insert(User user) {
        return userMapper.insert(user);
    }

    @Override
    public User select(String username) {
        return userMapper.select(username);
    }
}
